Integrand size = 22, antiderivative size = 229 \[ \int \sqrt {x} \left (a+b \text {sech}\left (c+d \sqrt {x}\right )\right )^2 \, dx=\frac {2 b^2 x}{d}+\frac {2}{3} a^2 x^{3/2}+\frac {8 a b x \arctan \left (e^{c+d \sqrt {x}}\right )}{d}-\frac {4 b^2 \sqrt {x} \log \left (1+e^{2 \left (c+d \sqrt {x}\right )}\right )}{d^2}-\frac {8 i a b \sqrt {x} \operatorname {PolyLog}\left (2,-i e^{c+d \sqrt {x}}\right )}{d^2}+\frac {8 i a b \sqrt {x} \operatorname {PolyLog}\left (2,i e^{c+d \sqrt {x}}\right )}{d^2}-\frac {2 b^2 \operatorname {PolyLog}\left (2,-e^{2 \left (c+d \sqrt {x}\right )}\right )}{d^3}+\frac {8 i a b \operatorname {PolyLog}\left (3,-i e^{c+d \sqrt {x}}\right )}{d^3}-\frac {8 i a b \operatorname {PolyLog}\left (3,i e^{c+d \sqrt {x}}\right )}{d^3}+\frac {2 b^2 x \tanh \left (c+d \sqrt {x}\right )}{d} \]
[Out]
Time = 0.24 (sec) , antiderivative size = 229, normalized size of antiderivative = 1.00, number of steps used = 15, number of rules used = 11, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.500, Rules used = {5544, 4275, 4265, 2611, 2320, 6724, 4269, 3799, 2221, 2317, 2438} \[ \int \sqrt {x} \left (a+b \text {sech}\left (c+d \sqrt {x}\right )\right )^2 \, dx=\frac {2}{3} a^2 x^{3/2}+\frac {8 a b x \arctan \left (e^{c+d \sqrt {x}}\right )}{d}+\frac {8 i a b \operatorname {PolyLog}\left (3,-i e^{c+d \sqrt {x}}\right )}{d^3}-\frac {8 i a b \operatorname {PolyLog}\left (3,i e^{c+d \sqrt {x}}\right )}{d^3}-\frac {8 i a b \sqrt {x} \operatorname {PolyLog}\left (2,-i e^{c+d \sqrt {x}}\right )}{d^2}+\frac {8 i a b \sqrt {x} \operatorname {PolyLog}\left (2,i e^{c+d \sqrt {x}}\right )}{d^2}-\frac {2 b^2 \operatorname {PolyLog}\left (2,-e^{2 \left (c+d \sqrt {x}\right )}\right )}{d^3}-\frac {4 b^2 \sqrt {x} \log \left (e^{2 \left (c+d \sqrt {x}\right )}+1\right )}{d^2}+\frac {2 b^2 x \tanh \left (c+d \sqrt {x}\right )}{d}+\frac {2 b^2 x}{d} \]
[In]
[Out]
Rule 2221
Rule 2317
Rule 2320
Rule 2438
Rule 2611
Rule 3799
Rule 4265
Rule 4269
Rule 4275
Rule 5544
Rule 6724
Rubi steps \begin{align*} \text {integral}& = 2 \text {Subst}\left (\int x^2 (a+b \text {sech}(c+d x))^2 \, dx,x,\sqrt {x}\right ) \\ & = 2 \text {Subst}\left (\int \left (a^2 x^2+2 a b x^2 \text {sech}(c+d x)+b^2 x^2 \text {sech}^2(c+d x)\right ) \, dx,x,\sqrt {x}\right ) \\ & = \frac {2}{3} a^2 x^{3/2}+(4 a b) \text {Subst}\left (\int x^2 \text {sech}(c+d x) \, dx,x,\sqrt {x}\right )+\left (2 b^2\right ) \text {Subst}\left (\int x^2 \text {sech}^2(c+d x) \, dx,x,\sqrt {x}\right ) \\ & = \frac {2}{3} a^2 x^{3/2}+\frac {8 a b x \arctan \left (e^{c+d \sqrt {x}}\right )}{d}+\frac {2 b^2 x \tanh \left (c+d \sqrt {x}\right )}{d}-\frac {(8 i a b) \text {Subst}\left (\int x \log \left (1-i e^{c+d x}\right ) \, dx,x,\sqrt {x}\right )}{d}+\frac {(8 i a b) \text {Subst}\left (\int x \log \left (1+i e^{c+d x}\right ) \, dx,x,\sqrt {x}\right )}{d}-\frac {\left (4 b^2\right ) \text {Subst}\left (\int x \tanh (c+d x) \, dx,x,\sqrt {x}\right )}{d} \\ & = \frac {2 b^2 x}{d}+\frac {2}{3} a^2 x^{3/2}+\frac {8 a b x \arctan \left (e^{c+d \sqrt {x}}\right )}{d}-\frac {8 i a b \sqrt {x} \operatorname {PolyLog}\left (2,-i e^{c+d \sqrt {x}}\right )}{d^2}+\frac {8 i a b \sqrt {x} \operatorname {PolyLog}\left (2,i e^{c+d \sqrt {x}}\right )}{d^2}+\frac {2 b^2 x \tanh \left (c+d \sqrt {x}\right )}{d}+\frac {(8 i a b) \text {Subst}\left (\int \operatorname {PolyLog}\left (2,-i e^{c+d x}\right ) \, dx,x,\sqrt {x}\right )}{d^2}-\frac {(8 i a b) \text {Subst}\left (\int \operatorname {PolyLog}\left (2,i e^{c+d x}\right ) \, dx,x,\sqrt {x}\right )}{d^2}-\frac {\left (8 b^2\right ) \text {Subst}\left (\int \frac {e^{2 (c+d x)} x}{1+e^{2 (c+d x)}} \, dx,x,\sqrt {x}\right )}{d} \\ & = \frac {2 b^2 x}{d}+\frac {2}{3} a^2 x^{3/2}+\frac {8 a b x \arctan \left (e^{c+d \sqrt {x}}\right )}{d}-\frac {4 b^2 \sqrt {x} \log \left (1+e^{2 \left (c+d \sqrt {x}\right )}\right )}{d^2}-\frac {8 i a b \sqrt {x} \operatorname {PolyLog}\left (2,-i e^{c+d \sqrt {x}}\right )}{d^2}+\frac {8 i a b \sqrt {x} \operatorname {PolyLog}\left (2,i e^{c+d \sqrt {x}}\right )}{d^2}+\frac {2 b^2 x \tanh \left (c+d \sqrt {x}\right )}{d}+\frac {(8 i a b) \text {Subst}\left (\int \frac {\operatorname {PolyLog}(2,-i x)}{x} \, dx,x,e^{c+d \sqrt {x}}\right )}{d^3}-\frac {(8 i a b) \text {Subst}\left (\int \frac {\operatorname {PolyLog}(2,i x)}{x} \, dx,x,e^{c+d \sqrt {x}}\right )}{d^3}+\frac {\left (4 b^2\right ) \text {Subst}\left (\int \log \left (1+e^{2 (c+d x)}\right ) \, dx,x,\sqrt {x}\right )}{d^2} \\ & = \frac {2 b^2 x}{d}+\frac {2}{3} a^2 x^{3/2}+\frac {8 a b x \arctan \left (e^{c+d \sqrt {x}}\right )}{d}-\frac {4 b^2 \sqrt {x} \log \left (1+e^{2 \left (c+d \sqrt {x}\right )}\right )}{d^2}-\frac {8 i a b \sqrt {x} \operatorname {PolyLog}\left (2,-i e^{c+d \sqrt {x}}\right )}{d^2}+\frac {8 i a b \sqrt {x} \operatorname {PolyLog}\left (2,i e^{c+d \sqrt {x}}\right )}{d^2}+\frac {8 i a b \operatorname {PolyLog}\left (3,-i e^{c+d \sqrt {x}}\right )}{d^3}-\frac {8 i a b \operatorname {PolyLog}\left (3,i e^{c+d \sqrt {x}}\right )}{d^3}+\frac {2 b^2 x \tanh \left (c+d \sqrt {x}\right )}{d}+\frac {\left (2 b^2\right ) \text {Subst}\left (\int \frac {\log (1+x)}{x} \, dx,x,e^{2 \left (c+d \sqrt {x}\right )}\right )}{d^3} \\ & = \frac {2 b^2 x}{d}+\frac {2}{3} a^2 x^{3/2}+\frac {8 a b x \arctan \left (e^{c+d \sqrt {x}}\right )}{d}-\frac {4 b^2 \sqrt {x} \log \left (1+e^{2 \left (c+d \sqrt {x}\right )}\right )}{d^2}-\frac {8 i a b \sqrt {x} \operatorname {PolyLog}\left (2,-i e^{c+d \sqrt {x}}\right )}{d^2}+\frac {8 i a b \sqrt {x} \operatorname {PolyLog}\left (2,i e^{c+d \sqrt {x}}\right )}{d^2}-\frac {2 b^2 \operatorname {PolyLog}\left (2,-e^{2 \left (c+d \sqrt {x}\right )}\right )}{d^3}+\frac {8 i a b \operatorname {PolyLog}\left (3,-i e^{c+d \sqrt {x}}\right )}{d^3}-\frac {8 i a b \operatorname {PolyLog}\left (3,i e^{c+d \sqrt {x}}\right )}{d^3}+\frac {2 b^2 x \tanh \left (c+d \sqrt {x}\right )}{d} \\ \end{align*}
Time = 3.35 (sec) , antiderivative size = 344, normalized size of antiderivative = 1.50 \[ \int \sqrt {x} \left (a+b \text {sech}\left (c+d \sqrt {x}\right )\right )^2 \, dx=\frac {2 \cosh \left (c+d \sqrt {x}\right ) \left (a+b \text {sech}\left (c+d \sqrt {x}\right )\right )^2 \left (a^2 x^{3/2} \cosh \left (c+d \sqrt {x}\right )+\frac {3 b \cosh \left (c+d \sqrt {x}\right ) \left (2 b e^{2 c} x-2 b \left (1+e^{2 c}\right ) x+\frac {b \left (1+e^{2 c}\right ) \left (2 d^2 x-2 d \sqrt {x} \log \left (1+e^{2 \left (c+d \sqrt {x}\right )}\right )-\operatorname {PolyLog}\left (2,-e^{2 \left (c+d \sqrt {x}\right )}\right )\right )}{d^2}+\frac {2 i a \left (1+e^{2 c}\right ) \left (d^2 x \log \left (1-i e^{c+d \sqrt {x}}\right )-d^2 x \log \left (1+i e^{c+d \sqrt {x}}\right )-2 d \sqrt {x} \operatorname {PolyLog}\left (2,-i e^{c+d \sqrt {x}}\right )+2 d \sqrt {x} \operatorname {PolyLog}\left (2,i e^{c+d \sqrt {x}}\right )+2 \operatorname {PolyLog}\left (3,-i e^{c+d \sqrt {x}}\right )-2 \operatorname {PolyLog}\left (3,i e^{c+d \sqrt {x}}\right )\right )}{d^2}\right )}{d \left (1+e^{2 c}\right )}+\frac {3 b^2 x \text {sech}(c) \sinh \left (d \sqrt {x}\right )}{d}\right )}{3 \left (b+a \cosh \left (c+d \sqrt {x}\right )\right )^2} \]
[In]
[Out]
\[\int \left (a +b \,\operatorname {sech}\left (c +d \sqrt {x}\right )\right )^{2} \sqrt {x}d x\]
[In]
[Out]
\[ \int \sqrt {x} \left (a+b \text {sech}\left (c+d \sqrt {x}\right )\right )^2 \, dx=\int { {\left (b \operatorname {sech}\left (d \sqrt {x} + c\right ) + a\right )}^{2} \sqrt {x} \,d x } \]
[In]
[Out]
\[ \int \sqrt {x} \left (a+b \text {sech}\left (c+d \sqrt {x}\right )\right )^2 \, dx=\int \sqrt {x} \left (a + b \operatorname {sech}{\left (c + d \sqrt {x} \right )}\right )^{2}\, dx \]
[In]
[Out]
\[ \int \sqrt {x} \left (a+b \text {sech}\left (c+d \sqrt {x}\right )\right )^2 \, dx=\int { {\left (b \operatorname {sech}\left (d \sqrt {x} + c\right ) + a\right )}^{2} \sqrt {x} \,d x } \]
[In]
[Out]
\[ \int \sqrt {x} \left (a+b \text {sech}\left (c+d \sqrt {x}\right )\right )^2 \, dx=\int { {\left (b \operatorname {sech}\left (d \sqrt {x} + c\right ) + a\right )}^{2} \sqrt {x} \,d x } \]
[In]
[Out]
Timed out. \[ \int \sqrt {x} \left (a+b \text {sech}\left (c+d \sqrt {x}\right )\right )^2 \, dx=\int \sqrt {x}\,{\left (a+\frac {b}{\mathrm {cosh}\left (c+d\,\sqrt {x}\right )}\right )}^2 \,d x \]
[In]
[Out]